import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './routers'
// add pinia to the app
import {createPinia} from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)

app.use(router).mount('#app')
// const app = createApp(App)

// // 全局注册一个组件,全局组件不好，不推荐，我们不学习他
// app.component('Com-A',{})
// app.component('Com-B',{})
// app.mount('#app')

